package com.jokelandave.sportzbetz.client.presenters;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;

public class HomePresenter implements Presenter {

	public interface IHomeView
	{
		Widget asWidget();
	}
	
	private EventBus eventBus;
	private IHomeView view;
	
	public HomePresenter(EventBus eventBus, IHomeView view)
	{
		this.eventBus = eventBus;
		this.view = view;
	}
	
	private void bind()
	{
		
	}
	
	@Override
	public void go(HasWidgets container) 
	{
		bind();
		container.clear();
		container.add(view.asWidget());
	}

}
